<template>
  <canvas id="video"></canvas>
</template>

<script>
export default {
  name: 'Monitor',
  components: {},
  data() {
    return {}
  },
  mounted() {
    this.getVideos()
  },
  methods: {
    getVideos() {
      let canvas = document.getElementById('video')
      let url = 'ws://127.0.0.1:8066'
      let player = new JSMpeg.Player(url, { canvas: canvas })
    }
  }
}
</script>

<style scoped></style>
